.autocomplete__wrapper {
  position: relative;
}

.autocomplete__hint,
.autocomplete__input {
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  width: 100%;
  margin-bottom: 0;
}

.autocomplete__input {
  background-color: #0000;
  position: relative;
}

.autocomplete__hint {
  color: #b1b4b6;
  position: absolute;
}

.autocomplete__input--default {
  padding: 5px;
}

.autocomplete__input--focused {
  outline-offset: 0;
  outline: 3px solid #fd0;
  box-shadow: inset 0 0 0 2px;
}

.autocomplete__input--show-all-values {
  cursor: pointer;
  padding: 5px 34px 5px 5px;
}

.autocomplete__dropdown-arrow-down {
  z-index: -1;
  width: 24px;
  height: 24px;
  display: inline-block;
  position: absolute;
  top: 10px;
  right: 8px;
}

.autocomplete__menu {
  color: #0b0c0c;
  background-color: #fff;
  border: 2px solid #0b0c0c;
  border-top: 0;
  width: calc(100% - 4px);
  max-height: 342px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.autocomplete__menu--visible {
  display: block;
}

.autocomplete__menu--hidden {
  display: none;
}

.autocomplete__menu--overlay {
  z-index: 100;
  position: absolute;
  top: 100%;
  left: 0;
  box-shadow: 0 2px 6px #00000042;
}

.autocomplete__menu--inline {
  position: relative;
}

.autocomplete__option {
  cursor: pointer;
  border-width: 1px 0;
  border-bottom-style: solid;
  border-bottom-color: #b1b4b6;
  display: block;
  position: relative;
}

.autocomplete__option>* {
  pointer-events: none;
}

.autocomplete__option:first-of-type {
  border-top-width: 0;
}

.autocomplete__option:last-of-type {
  border-bottom-width: 0;
}

.autocomplete__option--odd {
  background-color: #fafafa;
}

.autocomplete__option--focused,
.autocomplete__option:hover {
  color: #fff;
  background-color: #1d70b8;
  border-color: #1d70b8;
  outline: 0;
}

@media (-ms-high-contrast: active),
(forced-colors: active) {
  .autocomplete__menu {
    border-color: fieldtext;
  }

  .autocomplete__option {
    color: fieldtext;
    background-color: field;
  }

  .autocomplete__option--focused,
  .autocomplete__option:hover {
    forced-color-adjust: none;
    color: selecteditemtext;
    background-color: selecteditem;
    border-color: selecteditem;
    outline-color: selecteditemtext;
  }
}

.autocomplete__option--no-results {
  color: #646b6f;
  cursor: not-allowed;
  background-color: #fafafa;
}

.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
  font-size: 16px;
  line-height: 1.25;
}

.autocomplete__hint,
.autocomplete__option {
  padding: 5px;
}

@media (width >=641px) {

  .autocomplete__hint,
  .autocomplete__input,
  .autocomplete__option {
    font-size: 19px;
    line-height: 1.31579;
  }
}

:root {
  --brand-color: #8cb9d5;
  --brand-color-darker: #93ccff;
  --border-color: #93ccff;
  --border-color-darker: #77a4dd;
  --border-color-darker: var(--brand-color-darker-darker);
  --black: #000;
  --white: #fff;
  --red: red;
  --background-color: var(--white);
  --text-color: #222;
  --link-color: #54c;
  --active-link-color: var(--black);
  --summary-marker-color: var(--border-color);
}

body {
  background: var(--background-color);
  color: var(--text-color);
  margin: 0;
  margin-bottom: env(safe-area-inset-bottom);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI Variable, Segoe UI, Roboto, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.skip {
  text-align: center;
  height: 0;
  display: block;
  overflow: hidden;
}

.skip:focus {
  height: auto;
}

code,
pre {
  font-family: ui-monospace, Monaco, Consolas, monospace;
  font-size: .875em;
}

header,
main,
footer {
  display: block;
}

main {
  padding: 0 1em;
  padding-left: calc(env(safe-area-inset-left) + 1em);
  padding-right: calc(env(safe-area-inset-right) + 1em);
  margin: 0 auto;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration-skip-ink: auto;
  text-decoration: underline;
}

a:active {
  background-color: var(--brand-color);
  color: var(--active-link-color);
}

abbr {
  cursor: help;
  font-weight: bold;
  text-decoration: none;
}

kbd {
  font: inherit;
  border: 1px solid #ccc;
  border-radius: .5em;
  padding: .25em;
}

label {
  cursor: pointer;
}

details {
  margin: 1em 0;
}

summary {
  cursor: pointer;
  font-weight: bold;
}

summary::marker {
  color: var(--border-color-darker);
}

.autocomplete__hint {
  font: inherit;
}

.autocomplete__hint,
.autocomplete__input {
  border: 1px solid var(--border-color);
  margin: 0;
}

.autocomplete__menu {
  border: 1px solid var(--border-color);
  border-top: 0;
  width: calc(100% - 2px);
}

.autocomplete__input--focused {
  box-shadow: none;
}

.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
  padding: 4px;
  font-size: 1em;
}

.autocomplete__option {
  border-color: var(--border-color);
}

.autocomplete__option--odd {
  background: none;
}

.autocomplete__option--focused,
.autocomplete__option:hover {
  background: var(--brand-color);
  border-color: var(--brand-color-darker);
  color: var(--text-color);
}

.errorlist:not(.nonfield) {
  color: red;
  float: right;
  margin: 0;
  font-size: .875em;
}

.errorlist.nonfield {
  float: none;
  border: 1px solid red;
  padding: 1em;
}

#id_colours,
#id_features {
  margin-top: -.5em;
}

#id_colours label {
  padding: .25em;
  display: inline-block;
}

#id_colours label div {
  vertical-align: middle;
  margin-right: .25em;
  display: inline-block;
}

#id_colours input {
  margin-right: .75em;
}

#id_reg,
#id_previous_reg {
  text-transform: uppercase;
}

.site-header {
  background: var(--brand-color);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  position: relative;
  overflow: hidden;
}

.site-header a {
  color: var(--header-text-color);
  padding: .66667em;
  line-height: 1;
  display: inline-block;
}

.site-header a:hover {
  background-color: var(--brand-color-darker);
  text-decoration: none;
}

.site-header .site-name {
  font-size: 1.5em;
}

.site-header div {
  margin: 0 auto;
}

.site-header div .site-name {
  position: absolute;
}

.site-header ul {
  float: right;
  margin: 0;
}

.site-header ul li {
  display: inline;
}

.site-header ul a {
  padding: 1em 1em 1em .5em;
  line-height: 1.5em;
}

.site-header .search {
  float: right;
}

.site-header .search label {
  padding: 1em 1em 1em 0;
  line-height: 1.5;
  display: block;
}

.site-header .search label input {
  border-radius: 0;
  margin: 0;
  position: absolute;
  top: -3em;
}

.site-header .search label input:focus {
  border-width: .75em 1em;
  width: 100%;
  top: 0;
  left: 0;
}

.site-header .search label+input {
  display: none;
}

.site-header ul+.search label {
  padding-right: .5em;
}

.search p {
  display: flex;
}

.search input[type="search"] {
  flex-grow: 1;
  margin-right: .5em;
}

h1,
h2 {
  margin: .5em 0;
  line-height: 1.2em;
}

h1 {
  font-size: 1.75em;
}

@font-face {
  font-family: Charles Wright;
  src: url("../CharlesWright-Bold.334fc1a0.woff2") format("woff2"), url("../CharlesWright-Bold.a2adbcf1.woff") format("woff");
}

.reg {
  text-align: center;
  color: #222;
  font-family: 'Charles Wright', sans-serif;
  font-weight: bolder;
}

h1 .reg {
  border: 1px solid var(--border-color);
  border-radius: .1em;
  padding: .25em;
  font-size: .825em;
}

h2 {
  margin-top: 1em;
  font-size: 1.25em;
}

section header {
  align-items: baseline;
  gap: 1em;
  display: flex;
}

section header h2 {
  margin: .5em 0 0;
}

section header a {
  line-height: 1;
}

h3 {
  font-size: 1em;
}

.bulleted li {
  margin-left: 1em;
  list-style: disc;
}

.button,
input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  background: var(--brand-color);
  border: 0;
  border-bottom: .0625em solid var(--brand-color-darker);
  color: inherit;
  font: inherit;
  border-radius: .5em;
  margin-bottom: .0625em;
  padding: .25em .5em;
  display: inline-block;
  position: relative;
  top: .0625em;
}

.button:hover,
input[type="submit"]:hover {
  border-bottom-width: .125em;
  margin-bottom: 0;
  text-decoration: none;
  top: 0;
}

.button:focus,
.button:active,
input[type="submit"]:focus,
input[type="submit"]:active {
  background-color: var(--brand-color-darker);
  border-bottom: 0;
  margin-bottom: .125em;
  top: .0625em;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  display: block;
}

input[type="text"],
input[type="url"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="time"],
textarea {
  -webkit-appearance: none;
  appearance: none;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  color: inherit;
  font: inherit;
  border-radius: .5em;
  outline: 0;
  padding: .25em .5em;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus {
  border-color: var(--border-color-darker);
}

.errorlist:not(.nonfield)+p input[type="text"],
.errorlist:not(.nonfield)+p input[type="url"],
.errorlist:not(.nonfield)+p input[type="number"],
.errorlist:not(.nonfield)+p input[type="email"],
.errorlist:not(.nonfield)+p input[type="password"],
.errorlist:not(.nonfield)+p input[type="search"],
.errorlist:not(.nonfield)+p input[type="date"],
.errorlist:not(.nonfield)+p input[type="time"],
.errorlist:not(.nonfield)+p textarea {
  border-color: var(--red);
}

::-webkit-datetime-edit {
  padding: 0;
}

::-webkit-calendar-picker-indicator {
  margin-left: 0;
}

select {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  color: inherit;
  font: inherit;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 16 8' width='16' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 4,8 8,0'/%3E%3C/svg%3E");
  background-position: 100%;
  background-repeat: no-repeat;
  border-radius: .5em;
  max-width: 100%;
  padding: .25em 1.5em .25em .25em;
}

select::-ms-expand {
  display: none;
}

form p select {
  box-sizing: border-box;
  width: 100%;
  display: block;
}

.helptext {
  font-size: .875em;
  display: block;
}

.loading {
  opacity: .5;
}

.loading,
.loading a {
  cursor: progress;
}

.prediction {
  opacity: .6;
}

.groupings {
  flex-wrap: wrap;
  gap: 1em 2em;
  margin-top: 1em;
  display: flex;
}

.grouping {
  flex-grow: 1;
  max-width: 100%;
}

.grouping h2 {
  margin-top: 0;
}

.timetable-date {
  margin: 1em 0;
}

.timetable-date select {
  padding: .5em 1.5em .5em .5em;
}

.timetable-date p {
  margin: 0;
  display: inline-block;
}

.timetable-date div {
  display: inline-block;
}

.timetable-date label {
  margin-left: 1em;
  display: inline-block;
}

.timetable-date+.table-wrapper {
  margin-top: 1em;
}

input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

ul,
ol,
li {
  padding: 0;
  list-style: none;
}

ul,
ol {
  margin: 1em 0;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0 0 1em;
}

.history>li {
  margin-left: 1.75em;
  padding-left: .25em;
  list-style: decimal;
}

.history ::marker {
  font-variant-numeric: normal;
}

.history ul {
  display: flex;
}

.history ul li+li {
  margin-left: 1.5em;
}

.history ul strong {
  display: block;
}

main li {
  break-inside: avoid;
}

main li>a {
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: .125em 0;
  display: block;
  overflow: hidden;
}

.has-smalls li a,
.has-smalls li a:hover .name {
  text-decoration: none;
}

.has-smalls li a:hover span {
  text-decoration: underline;
}

.has-smalls span {
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
}

.has-smalls small {
  color: var(--text-color);
  float: left;
  margin-right: .5em;
  font-size: .75em;
  display: block;
}

.has-smalls small:last-child {
  float: none;
  text-overflow: ellipsis;
  margin: 0;
  padding-bottom: .33em;
  overflow: hidden;
}

.bulleted a,
main p a,
table a {
  padding: 0;
  display: inline;
}

.bulleted a {
  white-space: normal;
}

.breadcrumb {
  border-bottom: 1px solid var(--brand-color-darker);
  white-space: nowrap;
  margin: 0 -1em;
  padding: .5em 0 0 .5em;
  overflow: auto;
}

.breadcrumb li {
  margin: -.5em 0 0;
  display: inline-block;
}

.breadcrumb li:after {
  color: var(--border-color-darker);
  content: "›";
  vertical-align: middle;
  padding: 0;
}

.breadcrumb li:last-child:after {
  width: 0;
  padding-right: 0;
}

.breadcrumb a {
  vertical-align: middle;
  padding: .75em .5em;
  display: inline-block;
}

.services a {
  white-space: normal;
  align-items: center;
  padding: .5em 0;
  display: flex;
}

.services a small {
  color: var(--text-color);
  white-space: nowrap;
  margin-left: 1em;
}

.services a:hover {
  text-decoration: none;
}

.services a:hover .description {
  text-decoration: underline;
}

.services a:focus,
.services a:active {
  color: var(--active-link-color);
}

.name {
  border: 1px solid var(--border-color);
  color: var(--text-color);
  float: left;
  text-align: center;
  margin-right: 1em;
  padding: .125em .5em;
  font-weight: normal;
}

.name.is-short {
  white-space: nowrap;
  margin-right: .5em;
  padding: .3125em .25em;
  font-size: 2em;
  line-height: 1em;
}

.name+.name {
  border-left: 0;
  margin-left: -1em;
}

.name+.name.is-short {
  margin-left: -.5em;
}

.has-smalls .name {
  margin-right: .75em;
}

.has-smalls .name+.name {
  margin-left: -.75em;
}

.service-map {
  background: var(--background-color);
  box-shadow: var(--background-color) 0 -100px, var(--background-color) 0 126px;
  z-index: 1;
  margin-bottom: 90px;
  position: fixed;
  inset: 0;
}

#map .service-map {
  display: none;
}

#map:target .service-map {
  display: block;
}

.ad-wrapper+#map .service-map {
  margin-top: 90px;
}

.sorry {
  justify-content: center;
  align-items: center;
  height: 100%;
  display: flex;
}

.livery {
  vertical-align: text-top;
  width: 2.25em;
  height: 1.5em;
  margin-right: .5em;
  display: inline-block;
}

table .livery {
  margin: 0;
}

table {
  border-collapse: collapse;
}

table .is-highlighted {
  background: var(--brand-color);
}

.compact {
  font-size: .875em;
}

.compact td {
  vertical-align: top;
}

.fleet .livery-cell {
  max-width: 0;
  padding-left: 3.25em;
  position: relative;
}

.fleet .livery-cell .livery {
  position: absolute;
  top: .2em;
  left: .5em;
}

.fleet td {
  overflow: hidden;
}

.fleet .number {
  text-align: right;
}

.fleet .trivia {
  display: none;
}

.fleet .last-seen {
  max-width: 5em;
}

.fleet tr:target {
  background: var(--brand-color);
}

.revisions-list li+li {
  border-top: 1px solid var(--border-color);
}

.wrap,
.wrap a {
  white-space: normal;
  overflow-wrap: anywhere;
}

td {
  border-top: 1px solid var(--border-color);
}

th a,
.link a,
.fleet a {
  margin: -.25em -.5em;
  padding: .25em .5em;
  display: block;
}

.stop-name[rowspan="2"] a {
  padding: 1.25em 0;
}

th,
td {
  border-left: 1px solid var(--border-color);
  text-align: left;
  padding: .25em .5em;
}

th:first-child,
td:first-child {
  border-left: 0;
  padding-left: 0;
}

th:first-child a,
td:first-child a {
  margin-left: 0;
  padding-left: 0;
}

th:last-child,
td:last-child {
  padding-right: 0;
}

th:last-child a,
td:last-child a {
  margin-right: 0;
  padding-right: 0;
}

thead th {
  vertical-align: bottom;
  padding-top: 0;
}

.table-wrapper {
  margin-left: calc(env(safe-area-inset-left) * -1 - 1em);
  margin-right: calc(env(safe-area-inset-right) * -1 - 1em);
  overflow-x: auto;
}

.table-wrapper table {
  border-collapse: separate;
  border-spacing: 0;
  padding-left: calc(env(safe-area-inset-left) + 1rem);
  padding-right: calc(env(safe-area-inset-right) + 1rem);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

#timetable {
  margin-top: 1em;
}

.timetable-wrapper-wrapper {
  margin: 1em 0;
  font-size: .875em;
}

.timetable-wrapper-wrapper input {
  vertical-align: top;
}

.timetable-wrapper {
  margin-left: -1.14em;
  margin-left: calc(env(safe-area-inset-left) * -1 - 1.14em);
  margin-right: -1.14em;
  margin-right: calc(env(safe-area-inset-right) * -1 - 1.14em);
  margin-top: 1em;
  position: relative;
  overflow-x: auto;
}

.timetable-wrapper--wide {
  margin-left: 0;
}

input:not(:checked)+label+.timetable-wrapper .minor,
input:not(:checked)+label+.route .minor {
  display: none;
}

input:not(:checked)+label+.timetable-wrapper .od,
input:not(:checked)+label+.timetable-wrapper .referrer,
input:not(:checked)+label+.timetable-wrapper .referrer+.dep,
input:not(:checked)+label+.route .od,
input:not(:checked)+label+.route .referrer,
input:not(:checked)+label+.route .referrer+.dep {
  display: table-row;
}

.timetable {
  border-collapse: separate;
  border-spacing: 0;
  padding: 0 1.14em;
  padding-left: calc(env(safe-area-inset-left) + 1.14em);
  padding-right: calc(env(safe-area-inset-right) + 1.14em);
}

.timetable-wrapper--wide .timetable {
  padding-left: 0;
}

.timetable .then-every {
  width: 0;
}

.timetable tbody td {
  font-variant-numeric: tabular-nums;
  border-left: 0;
}

.timetable td,
.timetable th {
  height: 1.5em;
}

.timetable tbody tr:first-child td,
.timetable tbody tr:first-child th {
  border-top: 0;
}

.timetable .referrer td,
.timetable .referrer th,
.timetable .referrer+.dep td,
.timetable .referrer+.dep th {
  background: var(--brand-color);
}

.timetable .referrer .then-every,
.timetable .referrer+.dep .then-every {
  background: none;
}

.timetable .referrer a,
.timetable .referrer+.dep a {
  color: var(--active-link-color);
}

.timetable thead th {
  border-top: 0;
  border-bottom: 1px solid var(--border-color);
  text-align: right;
  padding-right: .5em;
}

.timetable thead td {
  border: 1px solid var(--border-color);
  text-align: center;
  border-width: 0 1px 1px 0;
}

.timetable thead td:last-child {
  border-right: 0;
}

.timetable tfoot td {
  border: 1px solid var(--border-color);
  vertical-align: top;
  border-width: 1px 1px 0 0;
}

.timetable tfoot td:last-child {
  border-right: 0;
}

.timetable .dep th,
.timetable .dep td,
.timetable .minor+.minor th,
.timetable .minor+.minor td {
  border-top: 0;
}

.timetable .dep td:first-child {
  padding-left: .5em;
}

.timetable .minor .stop-name {
  padding-left: 1em;
}

.timetable .minor .stop-name a {
  margin-left: -1em;
  padding-left: 1em;
}

.timetable th {
  background: var(--background-color);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  white-space: nowrap;
  font-weight: normal;
}

.timetable-wrapper--wide .stop-name,
.timetable-wrapper--wide th {
  max-width: calc(100vw - 14em);
  position: sticky;
  left: 0;
  overflow: hidden;
}

.route a {
  margin-left: 1em;
}

.route li:before {
  border: 3px solid var(--border-color);
  content: " ";
  border-width: 3px 0 0 3px;
  width: 6px;
  height: 1.75em;
  margin-top: .85em;
  display: block;
  position: absolute;
}

.route li:last-child:before {
  height: 0;
}

.route .minor a {
  margin-left: 2em;
  font-size: .875em;
}

.route .minor:before {
  border-top-width: 1px;
  width: 1em;
}

.operator-map,
.journey-map {
  position: absolute;
  inset: 0;
}

.trip-map {
  height: 50vh;
  margin: 0 -1em;
  position: sticky;
  top: 0;
}

.journey-map.has-sidebar {
  bottom: 30%;
}

.journey-map+.map-sidebar {
  padding: 1em 1em 90px;
  position: absolute;
  inset: 70% 0 -90px;
  overflow: auto;
}

.map-sidebar .navigation {
  overflow: hidden;
}

.trip-timetable table {
  table-layout: fixed;
  white-space: nowrap;
  width: 100%;
}

.trip-timetable th {
  width: 4em;
  overflow: hidden;
}

.trip-timetable th:first-child {
  width: auto;
}

.trip-timetable td {
  border-left: 1px solid var(--border-color);
  padding: .25rem .5rem;
}

.trip-timetable td:last-child {
  padding-right: 0;
}

.trip-timetable .stop-name {
  border-left: 0;
  padding-left: 0;
}

.trip-timetable .stop-name a {
  margin: -.25rem -.5rem -.25rem 0;
  padding: .25rem .5rem .25rem 0;
  display: block;
  overflow: hidden;
}

.trip-timetable .minor {
  font-size: .875em;
}

.trip-timetable .minor+.minor td {
  border-top: 0;
}

.trip-timetable .previous,
.trip-timetable .next {
  margin: 0;
}

.trip-timetable .is-highlighted a {
  color: var(--active-link-color);
}

.credit {
  clear: both;
  overflow-wrap: anywhere;
  font-size: .875em;
}

.aside {
  clear: right;
  margin-top: 1em;
}

.aside:first-child {
  margin-top: 0;
}

.aside table {
  margin: 0 -.5em;
}

.aside th {
  border: 0;
  padding-right: .5em;
}

.aside td {
  vertical-align: top;
  border: 0;
  padding: .125em .5em;
}

.aside td:nth-child(2) {
  width: 100%;
}

.aside td:last-child {
  white-space: nowrap;
}

.aside td a {
  margin: -.125em -.5em;
  padding: .125em .5em;
  display: block;
}

.aside h2 {
  margin: .25em 0 .5em;
}

.aside h3,
.aside p {
  margin: .5em 0;
}

.aside ul {
  margin: 0;
}

.aside .credit {
  text-align: right;
  margin: .3em 0 0;
  font-size: .75em;
}

.aside form {
  gap: .5em;
  margin-bottom: .5em;
  display: flex;
}

.aside input {
  flex-grow: 1;
}

.aside .vehicle {
  color: #666;
  font-size: .75em;
}

time,
.tabular,
#fare-table td,
.aside td,
.trip-timetable td {
  font-variant-numeric: tabular-nums;
}

.message {
  border: 1px solid var(--border-color);
  padding: 1em;
}

.message p {
  margin-top: 0;
}

.situations {
  border: 1px solid var(--border-color);
  border-bottom: 0;
  margin: 1em 0;
}

.situations .situation {
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  padding: 1em;
}

.situations .situation p:first-child {
  margin-top: 0;
}

.situations .situation p:last-child {
  margin-bottom: 0;
}

.situations summary {
  margin: -1em;
  padding: 1em;
}

.situations .dates {
  margin-left: 1em;
  font-weight: normal;
  display: inline-block;
}

.ticket {
  border: 1px solid var(--border-color);
  color: inherit;
  margin-bottom: -1px;
  padding: 1em;
  display: block;
  position: relative;
}

.ticket:hover {
  border-color: var(--brand-color-darker-darker);
  z-index: 1;
  text-decoration: none;
}

.ticket h2,
.ticket h3 {
  margin: 0;
  display: inline-block;
}

.ticket p {
  margin-bottom: 0;
}

.ticket .price {
  float: right;
  margin: 0;
  display: inline-block;
}

.contact-details {
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  gap: 1em 2em;
  display: flex;
}

.contact-details dd {
  margin: 0;
}

.previous {
  float: left;
}

.next {
  float: right;
}

nav {
  margin: 1em auto;
  overflow: hidden;
}

nav ul,
nav p {
  margin: 0;
}

.ad-wrapper {
  text-align: center;
  margin: 1em -1em 10px;
}

body .ad-wrapper {
  min-height: 120px;
}

.ad-wrapper iframe {
  vertical-align: bottom;
}

@media (height >=480px) {
  .ad-wrapper {
    pointer-events: none;
    z-index: 9999;
    position: sticky;
    top: 0;
  }

  .ad-wrapper iframe {
    background: var(--background-color);
    pointer-events: auto;
  }
}

#content {
  margin-bottom: 1.5em;
}

body.has-overlay {
  position: relative;
  overflow: hidden;
}

body.has-overlay #AFM_inContentTop_ad {
  z-index: 9999;
  pointer-events: auto;
  background: var(--background-color);
  width: 100%;
  height: 90px;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

body.has-overlay #timetable {
  content-visibility: hidden;
}

.horizontal li,
footer li,
.horizontal li a,
footer li a {
  display: inline;
}

.horizontal li:before,
footer li:before {
  color: var(--border-color-darker);
  content: "  • ";
  font-weight: bold;
}

.horizontal li:first-child:before,
footer li:first-child:before {
  display: none;
}

.tabs {
  border-bottom: 1px solid var(--brand-color-darker);
  margin: 1em -1em;
  display: flex;
  overflow: visible;
}

.tabs>li {
  box-shadow: inset 0 -4px var(--brand-color-darker);
  float: left;
  margin: 0 1em;
  padding-top: .25em;
  padding-bottom: .75em;
}

.tabs>li>a {
  box-shadow: inset 0 -4px var(--background-color);
  margin: -.25em -1em -.75em;
  padding: .25em 1em .75em;
}

.regions li {
  padding: .125em 0;
}

.regions a {
  margin: -.125em 0;
}

.regions ul {
  margin: .25em 0 .25em 1em;
}

footer {
  clear: both;
  text-align: center;
  margin-top: 1.5em;
}

@media (height >=480px) {
  footer {
    margin-bottom: 92px;
  }
}

footer ul {
  border-top: 1px solid var(--brand-color-darker);
  clear: both;
  white-space: nowrap;
  margin: 0;
  padding: 1em;
  font-size: .75em;
  overflow: hidden;
}

footer ul a {
  padding: 1.2em .25em;
}

.no-ads .service-map {
  margin-top: 0;
  margin-bottom: 0;
}

.no-ads footer {
  margin-bottom: 0;
}

.no-ads .ad-wrapper {
  display: none;
}

@media (width >=30em) {
  .site-header ul a {
    padding-left: 1em;
  }

  .site-header .search {
    padding-right: 1em;
    position: relative;
    top: .7em;
  }

  .site-header .search label {
    float: left;
    width: 8em;
    padding: 0;
    position: relative;
  }

  .site-header .search input[type="search"] {
    border: 1px solid var(--brand-color-darker);
    border-top-left-radius: .5em;
    border-bottom-left-radius: .5em;
    width: 100%;
    top: 0;
    left: 0;
  }

  .site-header .search input[type="search"]:focus {
    border-width: 1px;
  }

  .site-header .search input[type="submit"] {
    background: var(--brand-color-darker);
    border: 1px solid var(--brand-color-darker);
    float: right;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin: 0;
    display: block;
    top: 0;
  }

  .site-header ul+.search {
    padding-right: .5em;
  }

  .long {
    column-count: 2;
  }

  .long.wide {
    column-count: 1;
  }
}

@media (width >=48em) {
  header .search label {
    width: 10em;
  }

  .narrow header div {
    width: 47.5em;
  }

  .narrow main {
    width: 45.5em;
  }

  h1 {
    font-size: 2em;
  }

  .panes {
    justify-content: space-between;
    margin: -1em 0;
    display: flex;
  }

  .services,
  .contact-details {
    column-count: 2;
    column-gap: 1em;
  }

  .contact-details {
    margin-top: 1em;
  }

  .contact-details p {
    break-inside: avoid;
    margin-top: 0;
  }

  .asides {
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 2em;
    display: flex;
  }

  .aside {
    flex-grow: 1;
    flex-basis: 0;
    min-width: 300px;
    margin-top: 0;
  }

  .fleet .trivia {
    display: table-cell;
  }

  .sidebar form {
    margin-bottom: 2em;
    display: flex;
  }

  .sidebar form p {
    margin: 0 1em 0 0;
  }

  .sidebar form p:last-child {
    margin-top: 1.5em;
    margin-right: 0;
  }

  .has-sidebar,
  .map-sidebar {
    height: auto;
    margin: 0;
    position: absolute;
  }

  .trip-map,
  .trip-map+.map-sidebar {
    top: 104px;
    bottom: 42px;
  }
}

@media (width >=48em) and (height >=480px) {

  .trip-map,
  .trip-map+.map-sidebar {
    bottom: 134px;
  }
}

@media (width >=48em) {
  .has-sidebar {
    left: 40%;
    right: 0;
  }

  .journey-map.has-sidebar {
    bottom: 0;
  }

  .journey-map+.map-sidebar {
    margin: 0;
    padding-top: 3em;
    top: 0;
  }

  .map-sidebar {
    box-sizing: border-box;
    width: 40%;
    margin-left: -1em;
    padding: 0 1em;
    overflow: auto;
  }
}

@media (width >=62.5em) {
  .site-header div {
    padding: 0 1em;
  }

  main {
    padding-left: 2em;
    padding-left: calc(env(safe-area-inset-left) + 2em);
    padding-right: 2em;
    padding-right: calc(env(safe-area-inset-right) + 2em);
  }

  .table-wrapper {
    margin-left: calc(env(safe-area-inset-left) * -1 - 2em);
    margin-right: calc(env(safe-area-inset-right) * -1 - 2em);
  }

  .table-wrapper table {
    padding-left: calc(env(safe-area-inset-left) + 2rem);
    padding-right: calc(env(safe-area-inset-right) + 2rem);
  }

  .breadcrumb {
    margin: 0 -2em;
    padding-left: 1.5em;
  }

  .ad-wrapper {
    margin: 1em -2em 10px;
  }

  .wide .site-header div {
    width: 62.5em;
  }

  .wide main {
    max-width: 60.5em;
  }

  .timetable-wrapper {
    margin-right: -2.28em;
  }

  .timetable {
    padding-right: 2.28em;
  }

  .long {
    column-count: 3;
  }

  .long.wide {
    column-count: 2;
  }

  .fleet .livery-cell {
    max-width: none;
  }

  .has-sidebar {
    left: 30%;
  }

  .map-sidebar {
    width: 30%;
    margin-left: -2em;
    padding-left: 2em;
  }
}

@media print {

  header,
  .breadcrumb,
  #buses-online,
  input,
  label,
  .ad-wrapper,
  .qc-cmp2-container,
  footer {
    display: none;
  }

  body #stickyAdContainer {
    display: none !important;
  }

  body,
  a {
    color: #000;
  }

  main {
    width: auto;
    margin: 0;
    padding: 0;
  }

  h1 {
    margin-top: 0;
    font-size: 1.75em;
  }

  .timetable-date select {
    border: 0;
    height: auto;
    padding: 0;
  }

  .timetable-date:after {
    display: none;
  }

  .timetable-wrapper {
    margin-top: 0;
  }

  .table-wrapper,
  .timetable-wrapper {
    overflow: visible;
  }

  .timetable thead td,
  .timetable td,
  .timetable th {
    border-color: #eee;
  }
}

@media (width >=970px) {
  .narrow .ad-wrapper {
    margin: 1em -121px 10px;
  }
}

@media (width >=1200px) {
  .narrow .ad-wrapper {
    margin: 1em -236px 10px;
  }

  .wide .ad-wrapper {
    margin: 1em -116px 10px;
  }
}

/*# sourceMappingURL=style.css.map */